package algorithms;

import network.Vertex;
import network.Network;

import java.util.Set;

public class SumOfDegree implements DeploymentAlgorithm{

    public int getCentrality(Set<Vertex> vertices) {
        int sum = 0;
        for(Vertex v : vertices){
            sum += v.getDegree();
        }
        return sum;
    }
}
